package com.efesco.service.compensation;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;
import com.efesco.common.DBTools;

/**
 * testViewModel
 */
public class testViewModel extends DefaultViewModel {
  protected void doUpdateData(ParameterSet parameters)
      throws Exception {
	  Dataset dataset1=this.getDataset("dataset1");
	  String apply_from_id=DBTools.getNewId("general");
	   long APPLY_FORM_ID=Long.valueOf(apply_from_id).longValue();
	   dataset1.setLong("APPLY_FORM_ID",APPLY_FORM_ID);
	   
	   dataset1.moveFirst();
	   while(!dataset1.isLast()){
		   for(int j=0;j< dataset1.fieldSet().getCount();j++){
			   if(dataset1.fieldSet().getField(j).getDataType()==10)
			   System.out.println(dataset1.fieldSet().getField(j).getName()+"==="+dataset1.getDate(dataset1.fieldSet().getField(j).getName()));
			   else
				   System.out.println(dataset1.fieldSet().getField(j).getName()+"==11=="+dataset1.getString(dataset1.fieldSet().getField(j).getName()));
		   }
		  
		  // System.out.println(dataset_Apply_Form.);
		   dataset1.moveNext();
	   }
    super.doUpdateData(parameters);
  }

}
